import 'package:flutter/material.dart';
import 'package:flutter_app/counter/counter_version.dart';
import 'package:flutter_app/stateLearn/click_txt.dart';
import 'package:flutter_app/utils/log_util.dart';
import 'package:get/get.dart';
import 'package:quick_dev_plugin/quick_dev_plugin.dart';

///author: create by SunJH
///时间: 2021/12/17 0017
///邮箱: 965989158@qq.com
///描述: flutter版本功能测试

class VersionFlutter extends GetView<CounterVersion> {
  const VersionFlutter({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    Get.put(CounterVersion());
    return Scaffold(
      body: Container(
        child: ListView(
          children: [
            ClickTxt(info: "检测版本更新", onPressed: ()async{
            }),
            ClickTxt(info: "打印测试", onPressed: ()async{
             var printNativeInfo =await QuickDevPlugin.platformVersion;
              LogUtil.logI(printNativeInfo);
            })
          ],
        ),
      ),
    );
  }
}
